class Library
{
    public List<Book> Books { get; set; } = [];

    public void AddBook(Book book)
    {
        Books.Add(book);
    }

    public void RemoveBook(Book book)
    {
        Books.Remove(book);
    }

    public void DisplayBooks()
    {
        if (Books.Count > 0)
        {
            foreach (Book book in Books)
            {
                System.Console.WriteLine(book);
            }
        }
    }
}